DX11 BUILD ROTATION MATRIX Z

Builds a rotation matrix that rotates around the Z-axis.
This can be combined through multiplication with matrices that rotate around the other axii.

  Syntax
Return Dword = DX11 BUILD ROTATION MATRIX Z(angle, [resultMatrix])
  Parameters
angle
Float
The angle of rotation around the z-axis, in radians.
[Optional] resultMatrix
Dword
The matrix to write the created rotation matrix to. Can be omitted, in which case a temporary matrix holding the generated rotation matrix will be returned.

  Returns

The resultMatrix, if one was provided, or a newly created temporary matrix holding the resulting matrix otherwise.

  See also

MATH Functions Menu
DX11 Function Categories